<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <jsp:include page="/static/common/commonHead.jsp"/>
    <title>工资列表</title>
    <script type="text/javascript" src="/static/js/payRoll/payRoll.js"></script>
</head>
<body>
<div id="toolbars">
    <shiro:hasPermission name="payRoll:saveOrUpdate,payRoll:remove">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit();">编辑</a>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
           onclick="remove();">删除</a>
    </shiro:hasPermission>
    <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
       onclick="reload();">刷新</a>
    <input id="employeeName" class="easyui-textbox" name="employeeName" data-options="labelWidth:40,width:160,prompt:'员工姓名:'">
    <input id="beginDate" class="easyui-datebox" name="beginDate" data-options="labelWidth:60,width:150,prompt:'起始时间:'">
    <input id="endDate" class="easyui-datebox" name="endDate" data-options="labelWidth:60,width:150,prompt:'结束时间:'">
    <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="queryObject()">查询</a>
    <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-tip',plain:true" onclick="onState()">核算</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-print'"
       onclick="window.open('/payRoll/exportXls.do')">导出</a>
    <a class="easyui-linkbutton" onclick="getImportXlsMode()" data-options="iconCls:'icon-redo',plain:true">获取上传模板</a>
    <form id="importXls_form" method="post" enctype="multipart/form-data">
        <input name="file" class="easyui-filebox" style="width: 170px" data-options="buttonText: '选择文件', buttonAlign:'left'"/>
        <a class="easyui-linkbutton" onclick="importXls()" data-options="iconCls:'icon-undo',plain:true">上传文件</a>
    </form>
</div>
<table id="datagrid"></table>
<div id="dialog">
    <form id="editForm" method="post">
        <input type="hidden" name="id"/>
        <div style="margin-top: 20px; margin-left: 40px;">
            <input class="easyui-textbox" name="salary" data-options="label:'员工工资:',labelWidth:60,width:240"/>
        </div>
        <div style="margin-top: 20px; margin-left: 40px;">
            <input class="easyui-datebox" name="month" data-options="label:'月份:',labelWidth:60,width:240"/>
        </div>
    </form>
</div>
<div id="buttons">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="submits()">确认</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-no'" onclick="cancel()">取消</a>
</div>
</body>
</html>
